package com.igeek.d0619.test3;

/**
 * @Author: zhiyu
 * @Date:18:00
 * @DESC:
 */
public class UserService implements InterfaceProxy{
    @Override
    public boolean login(String name, String password) {
        if (name.equals("admin")&&password.equals("123456")){
            return true;
        }else {
            return false;
        }
    }

    @Override
    public boolean register(String name, String password, Integer age) {
        if (!name.equals("admin")){
            System.out.println("正在将name="+name+",password="+password+",age="+age+"的用户信息写入到库中~~~~~~~~~~~");
            return true;
        }else {
            return false;
        }
    }
}
